package com.macro.mall.model;

import com.macro.mall.common.api.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * ti_training_user实体类
 *
 * @author
 *
 */
@Data
@ApiModel(description = "专题信息用户报文",value = "专题信息用户报文")
public class TiTrainingUser extends PageReq implements Serializable{
    /**id*/
    @ApiModelProperty(value = "id")
    private Integer id;
    /**会员标识*/
    @ApiModelProperty(value = "会员标识")
    private Integer memberId;
    /**专题id*/
    @ApiModelProperty(value = "专题id")
    private Integer trainingId;
    /**专题名称*/
    @ApiModelProperty(value = "专题名称")
    private String trainingName;
    /**姓名*/
    @ApiModelProperty(value = "姓名")
    private String username;
    /**手机号*/
    @ApiModelProperty(value = "手机号")
    private String phone;
    /**姓名*/
    @ApiModelProperty(value = "真实姓名")
    private String name;
    /**社区标识*/
    @ApiModelProperty(value = "社区标识")
    private String communityId;
    /**社区名称*/
    @ApiModelProperty(value = "社区名称")
    private String communityName;
    /**用户身份*/
    @ApiModelProperty(value = "用户身份 01-居民 02-居委会 03-物业公司 04-业委会 05-物管会 06-管理员 07-供应商 08-政府组织 09-其他")
    private String userIdentity;
    /**用户身份名称*/
    @ApiModelProperty(value = "用户身份名称")
    private String userIdentityName;
    /**创建时间*/
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**更新时间*/
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", trainingId=").append(trainingId);
        sb.append(", trainingName=").append(trainingName);
        sb.append(", username=").append(username);
        sb.append(", phone=").append(phone);
        sb.append(", name=").append(name);
        sb.append(", communityId=").append(communityId);
        sb.append(", communityName=").append(communityName);
        sb.append(", userIdentity=").append(userIdentity);
        sb.append(", userIdentityName=").append(userIdentityName);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}
